From: Keir Fraser Date: Tue, 7 Apr 2009 13:24:53 +0000 (+0100) Subject: xm: handle error in auxbin gracefully X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13988^2~20 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=bf70c786774b46ceea11f88ab5fe416789532478;p=xen.git xm: handle error in auxbin gracefully Signed-off-by: Christoph Egger --- diff --git a/tools/python/xen/util/auxbin.py b/tools/python/xen/util/auxbin.py index 75e38a838e..e1830001bb 100644 --- a/tools/python/xen/util/auxbin.py +++ b/tools/python/xen/util/auxbin.py @@ -35,7 +35,11 @@ def execute(exe, args = None): a = [ exepath ] if args: a.extend(args) - os.execv(exepath, a) + try: + os.execv(exepath, a) + except OSError, exn: + print exepath, ": ", exn + sys.exit(1) def pathTo(exe):